﻿using System;
using System.ComponentModel.DataAnnotations;
using HengTong.Model._Admin;
using WalkingTec.Mvvm.Core;

namespace HengTong.Model.Db.System;
/// <summary>
/// 微信用户
/// </summary>
public class SysWechatUser : BasePoco
{
    [Display(Name = "网站OpenId", Description = "微信网站应用OpenId", GroupName = "基本信息")]
    [StringLength(64)]
    public string WebOpenId { get; set; }

    [Display(Name = "公众号OpenId", Description = "微信公众号OpenId", GroupName = "基本信息")]
    [StringLength(64)]
    public string MpOpenId { get; set; }

    [Display(Name = "小程序OpenId", Description = "微信小程序OpenId", GroupName = "基本信息")]
    [StringLength(64)]
    public string MiniProgramOpenId { get; set; }

    [Display(Name = "UnionId", Description = "微信开放平台统一标识", GroupName = "基本信息")]
    [StringLength(64)]
    public string UnionId { get; set; }

    [Display(Name = "昵称", Description = "微信用户昵称", GroupName = "基本信息")]
    [StringLength(64)]
    public string NickName { get; set; }

    [Display(Name = "头像", Description = "微信用户头像URL", GroupName = "基本信息")]
    [StringLength(1024)]
    public string HeadImgUrl { get; set; }

    [Display(Name = "绑定用户", Description = "关联的系统用户对象", GroupName = "系统用户绑定")]
    public FrameworkUser User { get; set; }

    [Display(Name = "绑定用户", Description = "关联的系统用户主键", GroupName = "系统用户绑定")]
    public Guid? UserId { get; set; }

}